#ifndef PLAYER_H
#define PLAYER_H

#include "movingunit.h"

class Player : public MovingUnit
{
public:
    Player();
    Player(QRect &geometry);

    int getType() const;
    void init();

    void loseALife();

    void draw(QPainter *painter);
    void advance();
    void serializeDebug(QDebug &dbg);
    void serializeIn(QDataStream &in);
    void serializeOut(QDataStream &out);

private:
    int m_immortal;
};

#endif // PLAYER_H
